package quorum;
/* 
 * Task class for the todoList
 * */

public class QuorumTask{
	public static final int ACTION_INSERT = 0;
	public static final int ACTION_DELETE = 1;
//	public static final int ACTION_UPDATE = 2;
	

	public static final int TARGET_LIVE_SERVERS = 0;
	public static final int TARGET_LIVE_CLIENTS = 1;
//	public static final int TARGET_STATIC_SERVERS = 2;
//	public static final int TARGET_STATIC_CLIENTS = 3;

	private int action;
	private int target;
	private String value;
	/* server: id ip /client: id ip */
	
	public QuorumTask(int a, int t,String v){
		action=a;
		target=t;
		value=v;
	}
	
	public int getAction() {
		return action;
	}
	public void setAction(int action) {
		this.action = action;
	}
	public int getTarget() {
		return target;
	}
	public void setTarget(int target) {
		this.target = target;
	}	
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String toString(){
		return "QUORUMTASK"+"!"+action+"!"+target+"!"+value;
	}
}